﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace SmartSpace.UI.Silverlight.Web.Models
{
    /// <summary>
    /// 富导航数据模型
    /// </summary>
    public class Navigation
    {
        /// <summary>
        /// 获取或设置编号
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 获取或设置名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 获取或设置导航对应的图标编号
        /// </summary>
        public string IconID { get; set; }

        /// <summary>
        /// 获取或设置导航对应的图标路径
        /// </summary>
        public string IconPath { get; set; }

        /// <summary>
        /// 获取或设置视图
        /// </summary>
        public ModuleView View { get; set; }

        /// <summary>
        /// 视图参数
        /// </summary>
        public string ViewArguments { get; set; }

        public int Order { get; set; }

        public Guid ApplicationID { get; set; }

        /// <summary>
        /// 获取或设置子节点
        /// </summary>
        public List<Navigation> Children { get; set; }

        public Navigation()
        {
            Children = new List<Navigation>();
        }
    }
}